package cn.ds.assets.module.assets.controller.admin.metadataDatasource.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 元数据管理-数据源 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class BaseMetadataDatasourceBaseVO {

    @Schema(description = "数据源名称", example = "张三")
    private String name;

    @Schema(description = "数据源地址,符合JDBC规范", example = "https://www.iocoder.cn")
    private String url;

    @Schema(description = "数据源账号", example = "芋艿")
    private String username;

    @Schema(description = "数据源密码")
    private String password;

    @Schema(description = "数据源描述")
    private String desc;

    @Schema(description = "所属数据层,1:原始数据层ODS,2:数据仓库层DW,3:数据集市层DM")
    private Byte dataLayer;

    @Schema(description = "状态,0:未知,1:正常,-1:异常", example = "2")
    private Boolean status;

    @Schema(description = "项目空间ID,关联assets_project的id字段", example = "19301")
    private Long projectId;

    @Schema(description = "数据源类型,1:MySQL, 2:Oracle, 3:Hive, 4:PostgreSQL, 5:SQL Server", example = "1")
    private Byte type;

}
